Short:    Libalgo link library with source (PPC)
Author:   Arnand Turpel, Patrick Dostert, Andreas R. Kleinert (port)
Uploader: info@ar-kleinert.de
Type:     misc/math

 *************************************************************************

Algomath- c Library   Release 1.0.5   03.2000
-------------------   -------------   -------

Algomath is a portable Arithmetic C Library.
All routines have been thoroughly optimised for speed and efficiency,
while at the same time portable C. [...]

Download the latest release at:
http://www2.vo.lu/homepages/armand/index.html

You are free to do anything you desire with this code,
as long as you give credit where credit is due...

For criticism, fixes, suggestions, enhancements, send email to:

Armand Turpel: armandt@unforgettable.com

Patrick Dostert: patrick.dostert@cie.etat.lu
who helped in optimizing this library

[...]

int am_init()
void am_exit()

int am_numlength(int n)
int am_sumdigits(int n)
int am_sumdigitsalt(int n)
int am_extract(int n, int x)
int am_replace(int n, int d1, int d2)
int am_swap(int n, int d1, int d2)
int am_rotate(int n, int x, int p)
int am_sort( int n)

int am_sumdivisor(int n)
int am_gcd(int a, int b)
int am_hailstone(int n)

int am_isprime(int n)
int am_prime_ba(int t, int x)
int *am_primes_array(int n, int x)
int *am_primes_between(int n1, int n2, int *p)
int *am_factorize(int n, int *factors)
int am_goldbach(int n,int *d1, int *d2)

[...]

  Luxembourg, 11.1999,
  Armand Turpel

 *************************************************************************

 The Amiga version only comes with makefile for PPC (and a precompiled libalgo.a)
 plus a test program. However, it should be really simple to do a 68k version.

 The test program demonstrates

    "--'strong' Goldbach's Conjecture
        The Conjecture is, "Every even integer >= 4 is the sum of
        two primes.--"

 by performing am_goldbach on 16 by default. Alternatively one can
 say

    test [number]

 which will work for even numbers and give an error for odd numbers...

 --
 ARK, 30/May/2000


============================= Archive contents =============================

Original  Packed Ratio    Date     Time    Name
-------- ------- ----- --------- --------  -------------
    1087     463 57.4% 30-May-00 12:09:10 +algomath.h
   10716    7966 25.6% 19-Oct-99 01:56:24 +isprime.o
   10716    7968 25.6% 20-Oct-99 02:00:58 +isprime.obj
   19538    9494 51.4% 12-Apr-00 10:44:22 +isprime.asm
   30944    6761 78.1% 30-May-00 12:09:30 +libalgo.a
    2052     983 52.0% 30-May-00 12:13:44 +libalgo.readme
     566     327 42.2% 30-May-00 12:12:24 +main.c
    1754     775 55.8% 30-May-00 11:24:30 +makefile
   13464    4528 66.3% 30-May-00 11:49:50 +readme.txt
    2329     604 74.0% 30-May-00 11:53:14 +smakefile
     274     175 36.1% 30-May-00 11:24:34 +defs.h
      93      74 20.4% 30-May-00 11:24:34 +exit.c
     732     242 66.9% 30-May-00 11:24:34 +extdigx.c
     594     281 52.6% 30-May-00 11:24:34 +fact.c
     160     117 26.8% 30-May-00 11:24:34 +gcd.c
     641     232 63.8% 30-May-00 11:24:34 +goldbach.c
     911     463 49.1% 30-May-00 11:24:34 +hail.c
    1342     487 63.7% 30-May-00 11:24:34 +init.c
     430     244 43.2% 30-May-00 11:24:34 +isprime.c
     529     179 66.1% 30-May-00 11:24:34 +numlen.c
    1322     517 60.8% 30-May-00 11:24:34 +priarrab.c
    1612     480 70.2% 30-May-00 11:24:34 +priarray.c
    1366     392 71.3% 30-May-00 11:24:34 +primeab.c
    1486     412 72.2% 30-May-00 11:24:34 +repdig.c
    1461     455 68.8% 30-May-00 11:24:34 +rotatex.c
     480     227 52.7% 30-May-00 11:24:34 +sdigalt.c
     479     267 44.2% 30-May-00 11:24:34 +sortdig.c
     749     188 74.8% 30-May-00 11:24:34 +sumdigit.c
     387     218 43.6% 30-May-00 11:24:34 +sumdiv.c
    1607     421 73.8% 30-May-00 11:24:34 +swapdig.c
   29665   13777 53.5% 30-May-00 12:12:28 +test.elf
-------- ------- ----- --------- --------
  139486   59717 57.1% 31-May-100 18:45:08   31 files
